using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using Ent.Voice.Nomination;
using Ent.Voice.Organisation;
using Ent.Web.Helper;
using Ent.Voice;
public partial class Member_ShowMessage : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (Session["USERID"] == null)
            return;
        if (!IsPostBack)
        {
            int id = MathFunction.ConvertToInteger(Request.QueryString["id"]);
            Message m = Message.GetUserMessage(id, Session["USERID"].ToString());
            lblSubject.Text = "<b>" + ResourceHelper.Get("LBL_Subject") + "</b>" + " " + m.Subject;
            lblUser.Text = "&nbsp;&nbsp;&nbsp;&nbsp;" + Common.GetImageTextLink("ShowUser.aspx?id=" + m.FromUserId, "Images/dj/user.gif", StringHelper.RestrictMaxChar(m.FromUserName, 20), 15);
            lblDate.Text = m.PostDate.ToShortDateString();
            string text = HttpUtility.HtmlDecode(m.Content);
            StringHelper.ConvertToHtmlText(ref text);
            lblContent.Text = "<hr/><br />&nbsp;&nbsp;&nbsp;&nbsp;" + text;
        }

    }
}
